#include <iostream>
#include <string>
#include "DoomIIIMap.h"

using namespace libPortal::DoomIII;
using namespace std;

int main(int argc, char **argv)
{
  if(argc<2)
    {
      cout<<"Give a filename."<<endl;
      return 0;
    }
  
  DoomIIIMap w;
  string file = argv[1];

  if(!w.load(file))
    {
      cout<<"Could not load "<<argv[1]<<" Exiting."<<endl;
      return 0;
    }
  cout<<argv[1]<<" loaded."<<endl;
  
  return 0;
}
